﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Mian.Model;

[Table("MiniOpenidBind")]
public partial class MiniOpenidBind
{
    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("oid")]
    public int Oid { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    [Column("uid")]
    public int Uid { get; set; }

    /// <summary>
    /// 用户电话
    /// </summary>
    [Column("phone")]
    [StringLength(11)]
    [Unicode(false)]
    public string Phone { get; set; } = null!;

    /// <summary>
    /// 小程序openid
    /// </summary>
    [Column("openId")]
    [StringLength(150)]
    [Unicode(false)]
    public string OpenId { get; set; } = null!;

    /// <summary>
    /// 绑定事件
    /// </summary>
    [Column("bindTime", TypeName = "date")]
    public DateTime BindTime { get; set; }
}
